package com.zf.yichat.model;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;
import java.util.Date;

@Table(name = "groups")
public class RcGroups implements Serializable {
    @Transient
    private String groupIdStr;

    public String getGroupIdStr() {
        return groupIdStr;
    }

    public void setGroupIdStr(String groupIdStr) {
        this.groupIdStr = groupIdStr;
    }

    @Id
    private Integer id;

    private String name;

    @Column(name = "portraitUri")
    private String portraituri;

    @Column(name = "memberCount")
    private Integer membercount;

    @Column(name = "maxMemberCount")
    private Integer maxmembercount;

    @Column(name = "creatorId")
    private Integer creatorid;

    @Column(name = "certiStatus")
    private Integer certistatus;

    @Column(name = "isMute")
    private Integer ismute;

    @Column(name = "clearStatus")
    private Integer clearstatus;

    @Column(name = "clearTimeAt")
    private Long cleartimeat;

    @Column(name = "memberProtection")
    private Integer memberprotection;

    @Column(name = "copiedTime")
    private Long copiedtime;

    private Long timestamp;

    @Column(name = "createdAt")
    private Date createdat;

    @Column(name = "updatedAt")
    private Date updatedat;

    @Column(name = "deletedAt")
    private Date deletedat;

    @Column(name = "isReceive")
    private Integer isreceive;

    private String bulletin;

    private static final long serialVersionUID = 1L;

    public RcGroups(Integer id, String name, String portraituri, Integer membercount, Integer maxmembercount, Integer creatorid, Integer certistatus, Integer ismute, Integer clearstatus, Long cleartimeat, Integer memberprotection, Long copiedtime, Long timestamp, Date createdat, Date updatedat, Date deletedat, Integer isreceive, String bulletin) {
        this.id = id;
        this.name = name;
        this.portraituri = portraituri;
        this.membercount = membercount;
        this.maxmembercount = maxmembercount;
        this.creatorid = creatorid;
        this.certistatus = certistatus;
        this.ismute = ismute;
        this.clearstatus = clearstatus;
        this.cleartimeat = cleartimeat;
        this.memberprotection = memberprotection;
        this.copiedtime = copiedtime;
        this.timestamp = timestamp;
        this.createdat = createdat;
        this.updatedat = updatedat;
        this.deletedat = deletedat;
        this.isreceive = isreceive;
        this.bulletin = bulletin;
    }

    public RcGroups() {
        super();
    }

    /**
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * @return name
     */
    public String getName() {
        return name;
    }

    /**
     * @param name
     */
    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    /**
     * @return portraitUri
     */
    public String getPortraituri() {
        return portraituri;
    }

    /**
     * @param portraituri
     */
    public void setPortraituri(String portraituri) {
        this.portraituri = portraituri == null ? null : portraituri.trim();
    }

    /**
     * @return memberCount
     */
    public Integer getMembercount() {
        return membercount;
    }

    /**
     * @param membercount
     */
    public void setMembercount(Integer membercount) {
        this.membercount = membercount;
    }

    /**
     * @return maxMemberCount
     */
    public Integer getMaxmembercount() {
        return maxmembercount;
    }

    /**
     * @param maxmembercount
     */
    public void setMaxmembercount(Integer maxmembercount) {
        this.maxmembercount = maxmembercount;
    }

    /**
     * @return creatorId
     */
    public Integer getCreatorid() {
        return creatorid;
    }

    /**
     * @param creatorid
     */
    public void setCreatorid(Integer creatorid) {
        this.creatorid = creatorid;
    }

    /**
     * @return certiStatus
     */
    public Integer getCertistatus() {
        return certistatus;
    }

    /**
     * @param certistatus
     */
    public void setCertistatus(Integer certistatus) {
        this.certistatus = certistatus;
    }

    /**
     * @return isMute
     */
    public Integer getIsmute() {
        return ismute;
    }

    /**
     * @param ismute
     */
    public void setIsmute(Integer ismute) {
        this.ismute = ismute;
    }

    /**
     * @return clearStatus
     */
    public Integer getClearstatus() {
        return clearstatus;
    }

    /**
     * @param clearstatus
     */
    public void setClearstatus(Integer clearstatus) {
        this.clearstatus = clearstatus;
    }

    /**
     * @return clearTimeAt
     */
    public Long getCleartimeat() {
        return cleartimeat;
    }

    /**
     * @param cleartimeat
     */
    public void setCleartimeat(Long cleartimeat) {
        this.cleartimeat = cleartimeat;
    }

    /**
     * @return memberProtection
     */
    public Integer getMemberprotection() {
        return memberprotection;
    }

    /**
     * @param memberprotection
     */
    public void setMemberprotection(Integer memberprotection) {
        this.memberprotection = memberprotection;
    }

    /**
     * @return copiedTime
     */
    public Long getCopiedtime() {
        return copiedtime;
    }

    /**
     * @param copiedtime
     */
    public void setCopiedtime(Long copiedtime) {
        this.copiedtime = copiedtime;
    }

    /**
     * @return timestamp
     */
    public Long getTimestamp() {
        return timestamp;
    }

    /**
     * @param timestamp
     */
    public void setTimestamp(Long timestamp) {
        this.timestamp = timestamp;
    }

    /**
     * @return createdAt
     */
    public Date getCreatedat() {
        return createdat;
    }

    /**
     * @param createdat
     */
    public void setCreatedat(Date createdat) {
        this.createdat = createdat;
    }

    /**
     * @return updatedAt
     */
    public Date getUpdatedat() {
        return updatedat;
    }

    /**
     * @param updatedat
     */
    public void setUpdatedat(Date updatedat) {
        this.updatedat = updatedat;
    }

    /**
     * @return deletedAt
     */
    public Date getDeletedat() {
        return deletedat;
    }

    /**
     * @param deletedat
     */
    public void setDeletedat(Date deletedat) {
        this.deletedat = deletedat;
    }

    /**
     * @return isReceive
     */
    public Integer getIsreceive() {
        return isreceive;
    }

    /**
     * @param isreceive
     */
    public void setIsreceive(Integer isreceive) {
        this.isreceive = isreceive;
    }

    /**
     * @return bulletin
     */
    public String getBulletin() {
        return bulletin;
    }

    /**
     * @param bulletin
     */
    public void setBulletin(String bulletin) {
        this.bulletin = bulletin == null ? null : bulletin.trim();
    }
}